package com.sunny.myproject.storem.entity;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.sunny.myproject.system.entity.IdEntity;

/**
 * 仓库
 * @author sunny_nie
 *
 */
@Entity
@Table(name="tb_warehouse")
public class Warehouse extends IdEntity{

	private Materiel materiel;
	/**
	 * 库存
	 */
	private double nowStock;
	/**
	 * 等待卖
	 */
	private double waitSell;
	/**
	 * 等待做
	 */
	private double waitMake;
	/**
	 * 等待征用
	 */
	private double waitRequisition;
	/**
	 * 等待买
	 */
	private double waitBuy;
	/**
	 * 安全最大
	 */
	private String safemax;
	/**
	 * 安全最小
	 */
	private String safemin;
	/**
	 * 价钱
	 */
	private double price;
	
	@OneToOne(targetEntity=Materiel.class)
	public Materiel getMateriel() {
		return materiel;
	}
	public void setMateriel(Materiel materiel) {
		this.materiel = materiel;
	}
	public double getNowStock() {
		return nowStock;
	}
	public void setNowStock(double nowStock) {
		this.nowStock = nowStock;
	}
	public double getWaitSell() {
		return waitSell;
	}
	public void setWaitSell(double waitSell) {
		this.waitSell = waitSell;
	}
	public double getWaitMake() {
		return waitMake;
	}
	public void setWaitMake(double waitMake) {
		this.waitMake = waitMake;
	}
	public double getWaitRequisition() {
		return waitRequisition;
	}
	public void setWaitRequisition(double waitRequisition) {
		this.waitRequisition = waitRequisition;
	}
	public double getWaitBuy() {
		return waitBuy;
	}
	public void setWaitBuy(double waitBuy) {
		this.waitBuy = waitBuy;
	}
	public String getSafemax() {
		return safemax;
	}
	public void setSafemax(String safemax) {
		this.safemax = safemax;
	}
	public String getSafemin() {
		return safemin;
	}
	public void setSafemin(String safemin) {
		this.safemin = safemin;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	
	
}
